<style>
    #baseContractor-edit .layui-form-label{
        width: 100px;
    }
    #baseContractor-edit .layui-input-block{
        margin-left: 130px;
    }
</style>

<div class="febs-container" id="baseContractor-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="baseContractor-edit-form">
            <div class="layui-row">
                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">承包商Id：</label>
                    <div class="layui-input-block">
                        <input type="text" name="contractorId" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item  febs-hide">
                    <div class="layui-col-sm6" id="contractor-tenant" th:if="${hasHeadCompanyRole }">
                        <label class="layui-form-label febs-form-item-require">公司名称：</label>
                        <div class="layui-input-block" >
                            <select name="tenantId" lay-verify="required" lay-filter="tenantId" lay-search="">
                                <option value="">请选择</option>
                                <option th:each="item:${tenantList }"
                                        th:value="${item.tenantId}" th:text="${item.tenantName}"
                                        th:selected="${tenantId == item.tenantId}">
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md12">
                        <label class="layui-form-label febs-form-item-require ">承包商名称：</label>
                        <div class="layui-input-block">
                            <input type="text" name="contractorName" autocomplete="off" class="layui-input"
                                   maxlength="90" placeholder="请输入承包商名称" lay-verify="required">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label febs-form-item-require">承包商编号：</label>
                        <div class="layui-input-block">
                            <input type="text" name="contractorCode" autocomplete="off" class="layui-input"
                                   maxlength="64" placeholder="请输入承包商编号" lay-verify="required">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label">承包商简称：</label>
                        <div class="layui-input-block">
                            <input type="text" name="shortName" autocomplete="off" class="layui-input"
                                   maxlength="150" placeholder="请输入承包商简称" >
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label">承包商拼英：</label>
                        <div class="layui-input-block">
                            <input type="text" name="contractorPinyin" autocomplete="off" class="layui-input"
                                   maxlength="150" placeholder="请输入承包商拼英" lay-verify="required">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label febs-form-item-require ">承包商属性：</label>
                        <div class="layui-input-block">
                            <input type="text" name="attribute" autocomplete="off" class="layui-input"
                                   maxlength="255" placeholder="请输入承包商属性" lay-verify="required">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md6">
                        <label class="layui-form-label febs-form-item-require ">联系人：</label>
                        <div class="layui-input-block">
                            <input type="text" name="contacts" autocomplete="off" class="layui-input"
                                   maxlength="90" placeholder="请输入联系人" lay-verify="required">
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label febs-form-item-require ">联系方式：</label>
                        <div class="layui-input-block">
                            <input type="text" name="contactsPhone" autocomplete="off" class="layui-input"
                                   maxlength="64" placeholder="请输入联系方式" lay-verify="required">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-md12">
                        <label class="layui-form-label febs-form-item-require ">状态：</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="baseContractor-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var baseContractorData = [[${baseContractor}]];
</script>
<script th:src="@{/febs/js/contractor/baseContractor/baseContractorEdit.js(v=1)}"></script>